const path = require("path");
const resolve = dir => path.join(__dirname, dir);

module.exports = {
    css: {
        sourceMap: false,
    },
    configureWebpack: config => {
        config.resolve = {
            alias: {
                "@": resolve("src"),
            },
        };
    },
    parallel: true,
    devServer: {
        proxy: {
            "/api": {
                target: "http://api-test.idatafun.com",
                ws: true,
                changOrigin: true,
                pathRewrite: {
                    "^/api": "/jrdongcha-cms/api",
                },
            },
        },
    },
};